<?php if($events) { ?>
<div class="widget our-agents event-calendar">
	<div class="title ">
	<div class="event">Events</div>
	</div>
	<!-- /.title -->

	<div class="content"><?php foreach ($events as $event) { ?>
		<div class="agent">
			<div class="image"><a href="<?php echo $event['href'] ?>"><img
				src="<?php echo $event['Cover']; ?>"
				alt="<?php echo $event['Title']; ?>" width="120" height="70"></a></div>
			<!-- /.image -->
			<div class="name"><a href="<?php echo $event['href'] ?>"><?php echo $event['Title']; ?></a></div>
			<!-- /.name -->
			<div class="phone">Date: <?php echo date('d-M-Y',strtotime($event['StartDate']));?>
			to <?php echo date('d-M-Y',strtotime($event['EndDate']));?></div>
			<!-- /.phone -->
			<div class="phone">Time: <?php echo $event['StartTime'];?> to <?php echo $event['EndTime'];?></div>
			<!-- /.phone -->
		</div>
		<!-- /.agent --> 
		<?php } ?>
	</div>
	<!-- /.content -->
</div>
<!-- /.our-agents -->
<?php } ?>
